CC = gcc
CFLAGS = -c -Wall
MAIN = chessgame

all: chessgame
	
chessgame:chess.o game.o logic.o
		$(CC) -o chessgame chess.o game.o logic.o 
chess.o: chess.c
		$(CC) $(CFLAGS) -c chess.c
game.o: game.c
		$(CC) $(CFLAGS) -c game.c
logic.o: logic.c
		$(CC) $(CFLAGS) -c logic.c
clean: 
	  rm -rf chessgame *.o
